#ifndef QWTAREACHART_H
#define QWTAREACHART_H

#include "../qwtPlotAdapter.h"
#include "../../../AreaChart/BasicAreaChart.h"
#include <qwt/qwt.h>
#include <qwt/qwt_plot_curve.h>
#include "qwt/qwt_series_data.h"
#include "../../../../storage/Storage.h"
#include <QBrush>
#include <qwt/qwt_plot_grid.h>

namespace LightChart
{
    class QuietStop : public std::exception
    {
	public:
	QuietStop(const char* reason = "") throw() : reason(reason) {};
	const char* what() const throw()
	{
		return reason;
	}
	private:
	const char* reason;
    };

    class qwtAreaChart : public qwtPlotAdapter
    {
    public:
	qwtAreaChart(BasicAreaChart& chart) : qwtPlotAdapter(chart) {}
	void preparePlot(QwtPlot* plot);
	void draw();
    };
}

#endif // QWTAREACHART_H
